package org.example.cake.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author 文晓平
 * @version 1.0
 * @Description 登录拦截相关的配置类   git测试
 * @date 2025/2/25 9:38
 */
@Configuration
public class AdminConfig implements WebMvcConfigurer {
    //添加拦截器
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(new LoginInterceptor())
//                .addPathPatterns("/**")//拦截所有，包括静态资源
//                .excludePathPatterns("/token/**","/","/wx/login/**","/login","/css/**","/img/**","/js/**");//排除哪些不做拦截
    }
}
